#
# Copyright (C) 2015-2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=python2-ipaddress
PKG_VERSION:=1.0.23
PKG_RELEASE:=1

PYPI_NAME:=ipaddress
PKG_HASH:=b7f8e0369580bb4a24d5ba1d7cc29660a4a6987763faf1d8a8046830e020e7e2

PKG_LICENSE:=Python-2.0
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python2-package.mk

define Package/python-ipaddress/Default
  SECTION:=lang
  CATEGORY:=Languages
  SUBMENU:=Python
  TITLE:=Python 3.3+'s ipaddress
  URL:=https://github.com/phihag/ipaddress
endef

define Package/python2-ipaddress
$(call Package/python-ipaddress/Default)
  DEPENDS:=+PACKAGE_python2-ipaddress:python2-light
  VARIANT:=python2
endef

define Package/python2-ipaddress/description
Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.
endef

$(eval $(call Py2Package,python2-ipaddress))
$(eval $(call BuildPackage,python2-ipaddress))
$(eval $(call BuildPackage,python2-ipaddress-src))
